<template>
  <div>
    <div class="customer_type" style="color: blue"  @click="toGroupPage">
      {{ customerGroupMap[data.customerGroupId] }}
    </div>
  </div>
</template>


<script>
    import {ajax} from "@/store/yg/common/utils";
    export default {
        props: [
            'row', 'data', 'more'
        ],
        data() {
            return {
              customerGroupMap: {},
            }
        },
        created() {

        },
        mounted() {
          this.customerGroupMap = this.$store.state.main.entry.sources["customerGroupSource"];
        },
        methods: {
          toGroupPage(){
            var url = "/#/main/customer__group__list";
            url = url + "?id=" + this.data["customerGroupId"];
            window.open(url, "_blank");
          }
        }
    }
</script>
